<?php
/**
 * Created by b17
 * 3/2/12 7:15 PM
 */

class Zend_View_Helper_BaseUrl extends Zend_View_Helper_Abstract
{
    public function baseUrl()
    {
        $url = Zend_Registry::get('config')->resources->frontController->baseUrl;
        if (\Zend_Controller_Front::getInstance()->getRequest()->isSecure()) {
            $url = str_replace('http', 'https', $url);
        }
        return $url;
    }
}
